<template>
  <div>
    我是组件 --
    <button @click="click">点我</button>
  </div>
</template>

<script>
export default {
  props: ["reff"],
  created() {
    console.log(this.reff);
  },
  mounted() {
    this.$nextTick(() => {
      console.log(this.reff);
    });
  },
  methods: {
    click() {
      this.$nextTick(() => {
        console.log(this);
      });
    }
  },
};
</script>

<style>
</style>